package com.example.agriculture.service;

import com.example.agriculture.dao.UserDao;
import com.example.agriculture.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserDao userDao;

   public User  userLogin(User user){
       return userDao.userLogin(user);
   }

   public int updatePassword(User user){
       return userDao.updatePassword(user);
   }


}
